﻿<?xml version="1.0" encoding="utf-8"?>
<tasks>
  <task id="LinkTypes" name="LinkType definitions" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="Work item link types created">
    <taskXml>
      <LINKTYPES>
        <LINKTYPE fileName="WorkItem Tracking\LinkTypes\SharedStep.xml" />
        <LINKTYPE fileName="WorkItem Tracking\LinkTypes\TestedBy.xml" />
      </LINKTYPES>
    </taskXml>
  </task>
  <task id="WITs" name="WorkItemType definitions" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="Work item types created">
    <dependencies>
      <dependency taskId="LinkTypes" />
    </dependencies>
    <taskXml>
      <WORKITEMTYPES>
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Bug.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\SharedStep.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Task.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\TestCase.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\UserStory.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Issue.xml" />
      </WORKITEMTYPES>
    </taskXml>
  </task>
  <task id="Queries" name="Stored Query Definitions" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="Work item queries uploaded">
    <dependencies>
      <dependency taskId="WITs" />
    </dependencies>
    <taskXml>
      <QUERIES>
        <Permission allow="Read, Contribute, Delete, ManagePermissions, FullControl" identity="[SERVER]\$$PROJECTCOLLECTIONADMINGROUP$$" />
        <Permission allow="Read, Contribute, Delete, ManagePermissions, FullControl" identity="[$$PROJECTNAME$$]\$$PROJECTADMINGROUP$$" />
        <Permission allow="Read, Contribute, Delete, ManagePermissions, FullControl" identity="$$CREATOR_OWNER$$" />
        <Permission allow="Read" identity="[$$PROJECTNAME$$]\Readers" />
        <Permission allow="Read" identity="[$$PROJECTNAME$$]\Contributors" />
        <Permission allow="Read" identity="[$$PROJECTNAME$$]\Builders" />
        <QueryFolder name="Iteration 1">
          <Query name="Active Bugs" fileName="WorkItem Tracking\Queries\ActiveBugs.wiq" />
          <Query name="Active Tasks" fileName="WorkItem Tracking\Queries\ActiveTasks.wiq" />
          <Query name="Iteration Backlog" fileName="WorkItem Tracking\Queries\Iteration1Backlog.wiq" />
          <Query name="Bug Triage" fileName="WorkItem Tracking\Queries\BugTriage.wiq" />
          <Query name="Completed Tasks" fileName="WorkItem Tracking\Queries\CompletedTasks.wiq" />
          <Query name="Open Issues" fileName="WorkItem Tracking\Queries\OpenIssues.wiq" />
          <Query name="Open Test Cases" fileName="WorkItem Tracking\Queries\OpenTestCases.wiq" />
          <Query name="Open User Stories" fileName="WorkItem Tracking\Queries\OpenUserStories.wiq" />
          <Query name="Resolved Bugs" fileName="WorkItem Tracking\Queries\ResolvedBugs.wiq" />
          <Query name="User Stories Delivered" fileName="WorkItem Tracking\Queries\UserStoriesDelivered.wiq" />
          <Query name="User Stories without Test Cases" fileName="WorkItem Tracking\Queries\UserStoriesWithoutTestCases.wiq" />
        </QueryFolder>
        <QueryFolder name="Iteration 2">
          <Query name="Iteration Backlog" fileName="WorkItem Tracking\Queries\Iteration2Backlog.wiq" />
        </QueryFolder>
        <QueryFolder name="Iteration 3">
          <Query name="Iteration Backlog" fileName="WorkItem Tracking\Queries\Iteration3Backlog.wiq" />
        </QueryFolder>
        <QueryFolder name="Troubleshooting">
          <Query name="Work Items With Summary Values" fileName="WorkItem Tracking\Queries\WorkItemsWithSummaryValues.wiq" />
        </QueryFolder>
        <Query name="My Bugs" fileName="WorkItem Tracking\Queries\MyBugs.wiq" />
        <Query name="My Tasks" fileName="WorkItem Tracking\Queries\MyTasks.wiq" />
        <Query name="My Test Cases" fileName="WorkItem Tracking\Queries\MyTestCases.wiq" />
        <Query name="Product Backlog" fileName="WorkItem Tracking\Queries\ProductBacklog.wiq" />
        <Query name="Product Planning" fileName="WorkItem Tracking\Queries\ProductPlanning.wiq" />
      </QUERIES>
    </taskXml>
  </task>
  <task id="Categories" name="Categories definitions" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="Work item type categories created">
    <dependencies>
      <dependency taskId="WITs" />
    </dependencies>
    <taskXml>
      <CATEGORIES fileName="WorkItem Tracking\Categories.xml" />
    </taskXml>
  </task>
</tasks>